package com.admin.boot.common.utils;

import com.admin.boot.modules.online.entity.OnlineTableField;

import java.util.ArrayList;
import java.util.List;

/**
 * @version v3.0
 * @Description: TODO
 * @author: jeecg-boot
 * @date: 2024-01-10
 */
public class DefaultFields {

    public static List<OnlineTableField> defaultFields = new ArrayList<>();

    static {
        OnlineTableField onlineTableField = new OnlineTableField();
        onlineTableField.setFieldName("id");
        onlineTableField.setFieldType("String");
        onlineTableField.setFieldDescribe("主键");
        onlineTableField.setFieldTypeLength(36);
        onlineTableField.setCanNull(false);
        onlineTableField.setFieldTypeDecimalLength(0);
        onlineTableField.setPrimaryKey(true);
        defaultFields.add(onlineTableField);

        OnlineTableField onlineTableField1 = new OnlineTableField();
        onlineTableField1.setFieldName("create_time");
        onlineTableField1.setFieldType("Date");
        onlineTableField1.setFieldDescribe("创建时间");
        onlineTableField1.setFieldTypeLength(20);
        onlineTableField1.setCanNull(true);
        onlineTableField1.setFieldTypeDecimalLength(0);
        onlineTableField1.setPrimaryKey(false);
        defaultFields.add(onlineTableField1);


        OnlineTableField onlineTableField3 = new OnlineTableField();
        onlineTableField3.setFieldName("create_by");
        onlineTableField3.setFieldType("String");
        onlineTableField3.setFieldDescribe("创建人");
        onlineTableField3.setFieldTypeLength(36);
        onlineTableField3.setCanNull(false);
        onlineTableField3.setFieldTypeDecimalLength(0);
        onlineTableField3.setPrimaryKey(false);
        defaultFields.add(onlineTableField3);



        OnlineTableField onlineTableField2 = new OnlineTableField();
        onlineTableField2.setFieldName("update_time");
        onlineTableField2.setFieldType("Date");
        onlineTableField2.setFieldDescribe("更新时间");
        onlineTableField2.setFieldTypeLength(20);
        onlineTableField2.setCanNull(true);
        onlineTableField2.setFieldTypeDecimalLength(0);
        onlineTableField2.setPrimaryKey(false);
        defaultFields.add(onlineTableField2);

        OnlineTableField onlineTableField4 = new OnlineTableField();
        onlineTableField4.setFieldName("update_by");
        onlineTableField4.setFieldType("String");
        onlineTableField4.setFieldDescribe("创建人");
        onlineTableField4.setFieldTypeLength(36);
        onlineTableField4.setCanNull(false);
        onlineTableField4.setFieldTypeDecimalLength(0);
        onlineTableField4.setPrimaryKey(false);
        defaultFields.add(onlineTableField4);

    }
}
